<!DOCTYPE html>
<html>

{include file="common/head" title="人员管理-商城管理系统"/}

<link rel="stylesheet" href="{$Think.const.ACSS_PATH}staff.css">

<body class="hold-transition skin-red sidebar-mini">
    <div class="wrapper">
        {include file="common/scaffold" title="订单"/}
        
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    部门和人员管理
                    <small>人员管理 </small>
                </h1>
            </section>

            <!-- Main content -->
            <section class="content">
                <!-- Main row -->
                <div class="row">
                    <div class="col-xs-12 search-box">
                        <form action="">
                            <div class="search-group">
                                <input type="text" class="form-control" id="searchName" name="myname" placeholder="请输入姓名">
                            </div>
                            <div class="search-group">
                                <input type="text" class="form-control" id="searchMail" name="mail" placeholder="请输入邮箱">
                            </div>
                            <div class="search-group">
                                <select type="text" class="form-control" id="mysec" name="secid"></select>
                            </div>
                            <div class="search-group">
                                <input type="button" id="searchBtn" class="btn btn-primary" value="查找">
                            </div>
                        </form>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <div id="toolbar">
                            <button  id="createBtn" onclick = "javascript:createBtnHandler();" class = "btn btn-primary" > 新增 </button>
                            <button  id="editBtn" onclick="javascript:editBtnHandler();" class="btn btn-primary">编辑</button>
                            <button  id="removeBtn" onclick="javascript:removeBtnHandler();" class="btn btn-danger">删除</button>
                        </div>
                        <table id="table">

                        </table>

                    </div>


                </div>
            </section>
            <!-- /.content -->
            {include file="common/footer"/}
            
        </div>
        <!-- /.content-wrapper -->
    </div>
    <!-- ./wrapper -->
    <script>
        var GLOBAL_ListUrl = '{:url("section/stafflist")}';
        var GLOBAL_CreateUrl = '{:url("section/addstaff")}';
        var GLOBAL_EditUrl = '{:url("section/addstaff")}';
        var GLOBAL_RemoveUrl = '{:url("section/delstaff")}';
        var GLOBAL_allsection= '{:url("common/allsection")}';

        var GLOBAL_cateid=getUrlParam("secid");

        function getUrlParam(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r!=null) return unescape(r[2]); return null; //返回参数值
        }
    </script>
    <script src="{$Think.const.AJS_PATH}staff.js"></script>
</body>



</html>
